﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_CustomerLinkMan")] 
    public class LKCustomerLinkMan
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id 
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        
        
        private int _customerId;
        /// <summary>
        /// 客户Id
        /// </summary>
        [Column("CustomerId")]
        public int CustomerId 
        {
            get
            {
                return _customerId;
            }
            set { _customerId = value; }
        }
        
        
        private string _linkManName;
        /// <summary>
        /// 姓名
        /// </summary>
        [Column("LinkManName")]
        public string LinkManName 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_linkManName))
                    _linkManName=string.Empty;
                return _linkManName;
            }
            set { _linkManName = value; }
        }
        
        
        private string _phone;
        /// <summary>
        /// 电话
        /// </summary>
        [Column("Phone")]
        public string Phone 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_phone))
                    _phone=string.Empty;
                return _phone;
            }
            set { _phone = value; }
        }
        
        
        private string _fax;
        /// <summary>
        /// 传真
        /// </summary>
        [Column("Fax")]
        public string Fax 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_fax))
                    _fax=string.Empty;
                return _fax;
            }
            set { _fax = value; }
        }
        
        
        private string _email;
        /// <summary>
        /// Email
        /// </summary>
        [Column("Email")]
        public string Email 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_email))
                    _email=string.Empty;
                return _email;
            }
            set { _email = value; }
        }
        
        
        private bool _isDeleted;
        /// <summary>
        /// 是否删除(0:未删除,1:删除)
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted 
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }
        
        
        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime 
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }
        
        
    }
}

